// pages/person/person.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgList: [
      'http://admin-tbyl.moqilin.net/category/20170925/e8d78b1d2acf254662c3b76505e37e5a.jpg',
      'http://admin-tbyl.moqilin.net/article_category/20170925/5360235645ed4b52c3e8226ff8c6b361.jpg',
      'http://admin-tbyl.moqilin.net/article_category/20170925/50197f0f2b70b464019f28ea7d2c518c.jpg',
      'http://admin-tbyl.moqilin.net/article_category/20170925/2e21cd9bc30f943ff90a94160adb82fa.jpg',
      'http://admin-tbyl.moqilin.net/article_category/20170925/a50d85f5abffce2b18989cad22beb8a7.jpg',
      'http://admin-tbyl.moqilin.net/article_category/20170925/a36ee384206695469f1e1dc02319ed7f.jpg',
      'http://admin-tbyl.moqilin.net/article_category/20170925/d3cc8d3b1e283512882ef34f8a2afaf1.jpg',
      'http://admin-tbyl.moqilin.net/article_category/20170925/06ba2bfde6a9a583e232ff58d70dc751.jpg',
      'http://admin-tbyl.moqilin.net/article_category/20170925/8d3cea230896547fb79bc4eabde8c2c8.jpg',
    ],
  },

  //查看位置
  openLocation: function (e) {
    console.log(e)
    wx.openLocation({
      longitude: 114.230050,
      latitude: 22.685330,
      name: '功夫装修',
      address: '广东省深圳市龙岗区大运软件小镇23栋3015#'
    })
  },

  //拨打电话
  makePhoneCall: function(e){
    wx.makePhoneCall({
      phoneNumber: '186-8213-8795' //仅为示例，并非真实的电话号码
    })
  },

  //预览图片
  previewImage: function (e) {
    var current = e.target.dataset.src
    wx.previewImage({
      current: current,
      urls: this.data.imgList
    })
  },
  
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  },



  
  /**
     * 用户点击右上角分享
     */
  onShareAppMessage: function () {

  }
})